package com.hhsjdesign.dynamicui.interfaces

import android.content.Context
import com.hhsjdesign.dynamicui.businessdata.IViewable

/**
 * 入口接口，这个在适配器等都要实现
 */
interface IEnterable<T> {

    //转换成视图数据
    fun transform(origin: T): IViewable<T>

    //跳转页面
    fun startActivity(context: Context, businessItemData: T?)
}